<template>
	<view class="gameCircleTabs1">
		<!-- top -->
		<view class="logoMsg">
			<img src="../../static/image/gameCircleImage/wzryLogo.jpg" alt="">
			<view class="msg">
				<view class="msgTitle">
					王者荣耀
				</view>
				<view class="msgInfo">
					MOBA | 最强王者 | 5V5 | 多人对战 | 手机开黑
				</view>
			</view>
		</view>
		<!-- 最新更新 -->
		<view style="font-size: 14px;">
			最新更新
		</view>
		<!-- 版本号日期 -->
		<view class="v_date">
			<view class="v">
				版本 8.3.1.9
			</view>
			<view class="date">
				4天前
			</view>
		</view>
		<!-- 内容 -->
		<view style="font-size: 14px;margin-top: 10px;">
			【版本更新内容】
		</view>
		<u-read-more close-text='展开' show-height="30" :toggle="true" ref="uReadMore">
			<u-parse :content="content" @load="load"></u-parse>
		</u-read-more>
		<!-- 轮播图 -->
		<view style="margin-top: 50rpx;">
			<u-swiper @click="swiperClick" height='200' :list="list4" keyName="url" :autoplay="false"></u-swiper>
		</view>
		<!-- 游戏介绍 -->
		<view>
			<view style="font-size: 32rpx;margin-top: 50rpx;">
				【游戏介绍】
			</view>
			<u-read-more close-text='展开' show-height="30" :toggle="true" ref="uReadMore">
				<u-parse :content="content" @load="load"></u-parse>
			</u-read-more>
			<!-- 好友在玩 -->
			<view class="friendsPlaying">
				<img src="../../static/image/gameCircleImage/wzryLogo.jpg" alt="">
				<img src="../../static/image/gameCircleImage/wzryLogo.jpg" alt="">
				<img src="../../static/image/gameCircleImage/wzryLogo.jpg" alt="">
				<view class="friendsName">
					袁室祥、严浩等好友在玩

				</view>
				<uni-icons style="margin-left: 10rpx;margin-bottom: 8rpx;" custom-prefix="iconfont"
					type="icon-xiangyoujiantou" size="10"></uni-icons>
			</view>
			<!-- 分割线 -->
			<view class="line_left"></view>
			<!-- 游戏下载 -->
			<view class="gameDownload">
				<view class="download">
					<view class="downloadLeft">
						<img src="../../static/image/gameCircleImage/sd.png" alt="">
						<span>极速体验，试试云游戏版</span>
					</view>
					<view class="downloadRight">
						下载
					</view>
				</view>
				<view class="">

				</view>
			</view>
		</view>

	</view>
</template>

<script>
	export default {

		data() {

			return {
				content: `山不在高，有仙则名。水不在深，有龙则灵。斯是陋室，惟吾德馨。
								苔痕上阶绿，草色入帘青。谈笑有鸿儒，往来无白丁。可以调素琴，阅金经。
								无丝竹之乱耳，无案牍之劳形。南阳诸葛庐，西蜀子云亭。孔子云：何陋之有？`,
				list4: [{
					url: 'https://cdn.uviewui.com/uview/resources/video.mp4',
					title: '昨夜星辰昨夜风，画楼西畔桂堂东',
					poster: 'https://cdn.uviewui.com/uview/swiper/swiper1.png'
				}, {
					url: 'https://cdn.uviewui.com/uview/swiper/swiper2.png',
					title: '身无彩凤双飞翼，心有灵犀一点通'
				}, {
					url: 'https://cdn.uviewui.com/uview/swiper/swiper3.png',
					title: '谁念西风独自凉，萧萧黄叶闭疏窗，沉思往事立残阳'
				}],

			}
		},

		methods: {
			load() {
				this.$refs.uReadMore.init();
			},

			swiperClick(index) {
				console.log(index)
			}
		}
	}
</script>

<style lang="scss" scoped>
	.gameCircleTabs1 {
		height: 100%;

		.logoMsg {
			display: flex;
			margin-top: 40rpx;

			img {
				width: 50px;
				height: 50px;
				border-radius: 10px;
			}

			.msg {
				margin-left: 10px;

				.msgTitle {
					font-size: 16px;
					font-weight: 700;

				}

				.msgInfo {
					font-size: 14px;
					color: #ccc;
					margin-top: 10px;
				}
			}
		}

		.v_date {
			margin-top: 10px;
			display: flex;
			justify-content: space-between;
			align-items: center;
			color: #ccc;
			font-size: 14px;
		}

		.friendsPlaying {
			display: flex;
			align-items: center;
			font-size: 32rpx;
			margin: 30rpx 0;
			color: #b6b6b6;

			.friendsName {
				font-size: 28rpx;
				color: #e8e8e8;
			}

			img {
				width: 50rpx;
				height: 50rpx;
				margin-right: 10rpx;
			}
		}

		.line_left {
			background-color: #efefef;
			height: 1px;
		}

		.gameDownload {
			margin-top: 30rpx;

			.download {
				display: flex;
				justify-content: space-between;
				align-items: center;

				img {
					width: 30rpx;
					height: 30rpx;
					margin-top: 5rpx;
					margin-right: 5rpx;
				}

				span {
					font-size: 32rpx;

				}

				.downloadLeft {
					display: flex;
					align-items: center;
				}

				.downloadRight {
					display: flex;
					justify-content: center;
					align-items: center;
					padding: 15rpx 45rpx;
					border-radius: 60rpx;
					background-color: #e8e8e8;
					font-size: 36rpx;
					font-weight: 700;
					color: forestgreen;
				}
			}
		}
	}
</style>